package org.sbbs.app.license.service.impl;

import java.util.List;

import org.sbbs.app.license.dao.VenderInfoDao;
import org.sbbs.app.license.model.VenderInfo;
import org.sbbs.app.license.service.VenderInfoManager;
import org.sbbs.base.service.impl.BaseManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service( "venderInfoManager")
public class VenderInfoManagerImpl extends BaseManagerImpl<VenderInfo, Long>
    implements VenderInfoManager {
    VenderInfoDao venderInfoDao;

    @Autowired
    public VenderInfoManagerImpl(VenderInfoDao venderInfoDao) {
        super(venderInfoDao);
        this.venderInfoDao = venderInfoDao;
    }

    @Override
    public VenderInfo getVenderInfo() {
       List<VenderInfo> l = this.venderInfoDao.findAll();
        return l.get( 0 );
    }
}
